package com.datos
{
	import mx.collections.ArrayCollection;
	
	[Bindable]
	public class Datos extends Object
	{
		private var _local : String;
		private var _visitante : String;
		private var _ganadora : String;
		private var _encuentro : String;
		private var _numero : int;
		private var _javier : String;
		private var _jefferson : String;
		private var _guillermo : String;
		private var _escrutinio : ArrayCollection;
		
		public function Datos(){
			//Constructor de la Clase
			_local = new String();
			_visitante = new String();
			_ganadora = new String();
			_encuentro = new String();
			_javier = new String();
			_jefferson = new String();
			_guillermo = new String();
			_escrutinio = new ArrayCollection();
       	}
		
		
		//
		//  GETTERS
		//
		
		
		public function get local ():String
		{
			return this._local;
		}
		
		public function get visitante ():String
		{
			return _visitante;
		}
		
		public function get ganadora ():String
		{
			return this._ganadora;
		}
		
		public function get encuentro():String
		{
			return this._encuentro;
		}
		
		public function get numero():int
		{
			return this._numero;
		}

		public function get javier():String
		{
			return this._javier;
		}	

		public function get jefferson():String
		{
			return this._jefferson;
		}	

		public function get guillermo():String
		{
			return this._guillermo;
		}						
		
		public function get escrutinio():ArrayCollection
		{
			return this._escrutinio;
		}
		
		public function getEscrution(indice:int):ItemEscrutinio
		{
			return ItemEscrutinio(this._escrutinio.getItemAt(indice));
		}
		
		//
		//	SETTERS
		//
		public function set ganadora (param:String):void
		{
			this._ganadora = param;
		}
		
		public function set visitante (param:String):void
		{
			this._visitante = param;
		}
		
		public function set local(param:String):void
		{
			this._local=param;
		}
		
		public function set encuentro(param:String):void
		{
			this._encuentro = param;
		}
		
		public function set numero(param:int):void
		{
			this._numero = param;
		}	
		
		public function set javier(param:String):void
		{
			this._javier = param;
		}		

		public function set jefferson(param:String):void
		{
			this._jefferson = param;
		}	

		public function set guillermo(param:String):void
		{
			this._guillermo = param;
		}
		
		public function set escrutinio(param:ArrayCollection):void
		{
			this._escrutinio = param;
		}		

		public function setEscrution(param:ItemEscrutinio, indice:int):void
		{
			this._escrutinio.addItemAt(param,indice);
		}						
	}
}